package com.course.complier;

import java.util.Scanner;

public class Compiler {

	public static void main(String[] args) {
		String input_buffer = "";
		 // 从控制台读入语句，语句以"end"表明结束
		Scanner s = new Scanner(System.in);
		while (true) {
			String line = s.nextLine();
			if (line.equals("end")) {
				break;
			}
			input_buffer += line;
		}
		s.close();

		Lexer lexer = new Lexer(input_buffer);
		lexer.runLexer();
		BasicParser basic_parser = new BasicParser(lexer);
		basic_parser.statements();

	}
}
